import {
	createApp
} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router'


const app = createApp(App)

// 导入图标库
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 使用element plus
app.use(ElementPlus)

// 使用VueRouter
app.use(router)

// 挂载到dom中
app.mount('#app')